package test.serverframe.armc.server.manager.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnore;

@ApiModel("任务接口入口")
public class TaskEnterInterface {
    // 任务接口入口id
    @NotNull(message = "任务接口入口id不能为空")
    @ApiModelProperty("任务接口入口id")
    private String taskEnterId;

    // 节点id
    @NotNull(message = "节点id不能为空")
    @ApiModelProperty("节点id")
    private String nodeId;

    // 任务id
    @NotNull(message = "任务id不能为空")
    @ApiModelProperty("任务id")
    private String taskId;
    
    @ApiModelProperty("父id集合")
    private String parentIds;

    @ApiModelProperty("子id集合")
    private String childIds;

    @ApiModelProperty("接口ID")
    private String interfaceId;

    // 任务
    @ApiModelProperty(value = "任务")
    private Task task;
    
    @JsonIgnore
    @ApiModelProperty(value = "链路接口参数")
    private LinkParam linkParam;

    public String getTaskEnterId() {
        return taskEnterId;
    }

    public void setTaskEnterId(String taskEnterId) {
        this.taskEnterId = taskEnterId == null ? null : taskEnterId.trim();
    }

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId == null ? null : nodeId.trim();
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId == null ? null : taskId.trim();
    }

    public Task getTask() {
        return task;
    }

    public void setTask(Task task) {
        this.task = task;
    }

    public String getParentIds() {
        return parentIds;
    }

    public void setParentIds(String parentId) {
        this.parentIds = parentId == null ? null : parentId.trim();
    }

    public String getInterfaceId() {
        return interfaceId;
    }

    public void setInterfaceId(String interfaceId) {
        this.interfaceId = interfaceId == null ? null : interfaceId.trim();
    }


    public LinkParam getLinkParam() {
        return linkParam;
    }

    public void setLinkParam(LinkParam linkParam) {
        this.linkParam = linkParam;
    }

    public String getChildIds() {
        return childIds;
    }

    public void setChildIds(String childIds) {
        this.childIds = childIds == null ? null : childIds.trim();
    }

}